package com.ujiuye.domain.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Actor {
    private int id;
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String sex;
    private String description;
    private String pic;
    // 存储的是区域的id,使用逗号连接两个id,比如: "1,3,4"
    private String regionsStr;
    // 定于区域的属性:
    private List<Region> regions;

}
